package com.jmb.apiplatform.service;


import com.jmb.apiplatform.common.PageResult;
import com.jmb.apiplatform.exception.BusinessException;
import com.jmb.apiplatform.pojo.ApiCaseSuiteCaseRef;
import com.jmb.apiplatform.pojo.ApiCaseSuiteCaseRefTO;
import com.jmb.apiplatform.pojo.ApiCaseSuiteCaseRefVO;

import java.util.List;

public interface ApiCaseSuiteCaseRefService {
    void saveSuiteCaseRef(List<ApiCaseSuiteCaseRef> caseSuiteCaseRef);

    void saveSuiteCaseRefSingle(ApiCaseSuiteCaseRef caseSuiteCaseRef);

    void editSuiteCaseRef(ApiCaseSuiteCaseRef caseSuiteCaseRef);

    void removeSuiteCaseRef(Integer incrementKey);

    void removeSuiteCaseRefByObject(ApiCaseSuiteCaseRef caseSuiteCaseRef);

    PageResult<ApiCaseSuiteCaseRefVO> findSuiteCaseRefList(ApiCaseSuiteCaseRefTO caseSuiteCaseRefTO);

    List<ApiCaseSuiteCaseRefVO> findAllSuiteCaseRef(ApiCaseSuiteCaseRefTO caseSuiteCaseRefTO);

    String executeSuiteCaseById(Integer suiteId, String executor) throws BusinessException;

    Integer executeCaseInSuite(Integer suiteId, Integer caseId, String executor) throws BusinessException;
}
